import { languages, defaultLang } from '/plugin/i18n'
import { createStore } from 'vuex'

export const store = createStore({
  state () {
    return {
      languages,
      lang: defaultLang,
      count: 1
    }
  },
  mutations: {
    setValue(state, payload) {
      state[payload.key] = payload.value
    }
  }
})

